<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<li data-page="config" class="active page on">
	<i class="general foundicon-settings"></i>Configuraci&oacute;n
</li>

<span id="add_new_page_selector">
	<i class="general foundicon-add-doc"></i><a  data-toggle="modal" href="#new_page_modal" class="">Agregar otra página NUEVO</a>
</span>

<ul class="menu-list">
<c:forEach  items="${website.menu.pageList}" var="page" varStatus="status">
		    
<li id="page${page.id}" data-page="${page.pageType}" class="${page.showPage ? 'page active' : 'page block'}">
        
        <i class="general foundicon-page"></i>
        <input type="text" value="${page.name}"  class="span3 link-name" disabled="disabled" />
         <input type="hidden" value="${page.template}"  class="span3 link-template" />
        <div class="switch ${page.showPage ? 'on' : ''}">
            <span class="thumb"></span>
            <input type="checkbox" checked="checked" name="option${status.count}"/>
        </div>
</li>		   
</c:forEach>
</ul>

<!-- Modal -->
  <div class="modal fade" id="new_page_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h4>Elige un tipo de pagina</h4>
        </div>
        <div class="modal-body page_selector_box">
			<div class="container">
			<button type='button' class='btn btn-default addpage' data-page="dataType"><i class='general foundicon-page'></i> Pagina de Texto</button>
			<button type='button' class='btn btn-default addpage' ><i class='general foundicon-folder'></i> Pagina de listados</button>
			<button type='button' class='btn btn-default addpage' data-page="archive"><i class='general foundicon-inbox'></i> Pagina de archivo</button>
			<button type='button' class='btn btn-default addpage' ><i class='general foundicon-photo'></i> Galeria de imagenes</button>
			<button type='button' class='btn btn-default addpage' ><i class='general foundicon-video'></i> Galeria de imagenes</button>
			<button type='button' class='btn btn-default addpage' ><i class='general foundicon-website'></i> Pagina de formularios</button>
			</div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div><!-- /.modal -->
  
             


    